#include <iostream>

using std::cout;
using std::endl;
using std::rand;

#include "AVLtree.h"

typedef AVLnode<int> node_t;
typedef AVLnode<int>* nodeptr_t;

int main() {
    AVLtree<int> tree;

    for(int i=0;i<63;i++){
        tree.Insert(rand());
    }

    vector<int> v = tree.Vector();
    for(auto i:v) cout<<i<<" ";
    cout<<endl;

    vector<vector<int>> lr = tree.LevelOrder();
    for(auto line:lr){
        for(auto i:line){
            cout<<i<<" ";
        }
        cout<<endl;
    }


}
